


(function($){

	$.fn.mapMe = function( o ){

		var c = {'addr': false,
				'info' : false,
				'zoom': 11}
		c = $.extend(c, o)

		this.each(function() {
			$this = $(this)

			var map = new GMap2( this )
			map.addControl(new GSmallMapControl());

			var g = new GClientGeocoder()

			var addr = g.getLatLng( c.addr, function(p){
										if(p){
											map.setCenter(p,c.zoom)
											map.addOverlay(new GMarker(p))
											if(c.info)map.openInfoWindow(p, c.info)
										}
									})
		})
	}
})(jQuery);
